docs: Add note on command line arguments
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 10 Sep 2020 16:53:50 +0000 (17:53 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 10 Sep 2020 16:53:50 +0000 (17:53 +0100)
We don't parse them any more, and developers should stop using them when
migrating from GTK3 to GTK4.

docs/reference/gtk/migrating-3to4.md

index 27e6ead12c2a822748a596e636a1dce4d500272b..f02ae685082386797c3277faac2fc96f1eefa307 100644 (file)
@@ -49,6 +49,15 @@ application, e.g.:
 G_ENABLE_DIAGNOSTIC=1 ./your-app
 ```
 
+### Do not use GTK-specific command line arguments
+
+GTK4 does not parse command line arguments any more. If you are using
+command line arguments like `--gtk-debug` you should use the `GTK_DEBUG`
+environment variable instead. If you are using `--g-fatal-warnings` for
+debugging purposes, you should use the `G_DEBUG` environment variable, as
+specified by the
+[GLib documentation](https://developer.gnome.org/glib/stable/glib-running.html).
+
 ### Do not use widget style properties
 
 Style properties do not exist in GTK 4. You should stop using them in